PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Appearance Manager >

Programming With the Appearance Manager


GetThemeButtonContentBounds

Obtains the rectangle where content can be drawn for a button.

pascal OSStatus GetThemeButtonContentBounds (
                     const Rect *inBounds,
                     ThemeButtonKind inKind,
                     const ThemeButtonDrawInfo *inDrawInfo,
                     Rect *outBounds);
inBounds
A pointer to a structure of type Rect . Before calling GetThemeButtonContentBounds , set the rectangle to contain the boundary of the button, in local coordinates.
inKind
A value of type ThemeButtonKind . Pass a constant specifying the type of button being examined. See Theme Button Kind Constants for descriptions of possible values.
inDrawInfo
A pointer to a structure of type ThemeButtonDrawInfo . Before calling GetThemeButtonContentBounds , set the structure to contain the state, value, and adornment for the button.
outBounds
A pointer to a structure of type Rect . On return, the rectangle contains the actual boundary, in local coordinates, of the area of the button's face in which content can be drawn.
function result
A result code; see Result Codes .
DISCUSSION

The GetThemeButtonContentBounds function obtains the rectangle where content can be drawn for a button under the current theme.

VERSION NOTES

Available with Appearance Manager 1.1 and later.


© 1999 Apple Computer, Inc. – (Last Updated 29 April 99)